package com.acme.bankapp.domain.bank;

import com.acme.bankapp.domain.bank.exceptions.NotEnoughFundsException;

public class SavingAccount extends AbstractAccount {

    public SavingAccount(double amount) {
        super(amount);
    }

    @Override
    public void deposit(double amount) {
        super.deposit(amount);
    }

    @Override
    public void withdraw(double amount) throws NotEnoughFundsException {
        super.withdraw(amount);
    }

    @Override
    public double maximumAmountToWithdraw() {
        return getBalance();
    }

    @Override
    public String toString() {
        return "SavingAccount{" + super.toString() + '}';
    }
}
